package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.SsUserMapper;
import com.whq.entity.SsUser;
import com.whq.service.SsUserService;

@Service(value = "ssUserService")
public class SsUserServiceImpl implements SsUserService {

    @Autowired
    private SsUserMapper<SsUser>ssUserMapper;
    
    @Override
    public Integer insertSelective(SsUser ssUser) throws Exception {
           return this.ssUserMapper.insertSelective(ssUser);
        }

    @Override
    public Integer insertBatch(List<SsUser> ssUser) throws Exception {
           return this.ssUserMapper.insertBatch(ssUser) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.ssUserMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.ssUserMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(SsUser ssUser) {
           return this.ssUserMapper.updateByPrimaryKeySelective(ssUser);
    }

    @Override
    public SsUser findById(Object id) {
           return (SsUser) this.ssUserMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<SsUser> selectByCondition(SsUser ssUser) {
           return (List<SsUser>) this.ssUserMapper.selectByCondition(ssUser);
    }

    @Override
    public Integer selectCountByCondition(SsUser ssUser) {
           return  this.ssUserMapper.selectCountByCondition(ssUser);
    }

}
